BUILD		:= ../../build/doc/$(DOC_NAME)

DOC	:= $(BUILD)/$(DOC_NAME).pdf

TEXS = $(wildcard *.tex) $(wildcard fig/*.eps)

#include ../../globals.mk

all: $(DOC)

$(BUILD):
	mkdir $(BUILD)

$(DOC): $(BUILD) $(TEXS)
	$(LATEX) -output-format=pdf -output-directory=$(BUILD) $(DOC_NAME).tex

show: $(DOC)
	$(PDFSHOW) $(DOC)

.PHONY: clean

clean:
	rm -rf $(BUILD)

deploy:
	cp $(DOC) $(DOC_NAME).pdf